package com.mycinema.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.mycinema.biz.MovieBiz;
import com.mycinema.dao.MovieDao;
import com.mycinema.entity.Movie;
@Service("movieBiz")
@Scope("prototype") //设置bean的生命周期，通常业务类无需写
public class MovieBizImpl  implements MovieBiz{

	@Autowired
	private MovieDao movieDao;
	
	public List<Movie> getAll() {
		
		return movieDao.getAll();
	}

	public List<Movie> getWithMap() {
		
		return movieDao.getWithMap();
	}

	public List<Movie> getMoviesByCid(int cid) {
		
		return movieDao.getMoviesByCid(cid);
	}

}
